/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 石方旭
 * Date: 2022-04-26
 * Time: 20:08
 */
class A<T> {
    private T value;

    A(T value) {
        this.value = value;
    }
    T get () {
        return value;
    }
}
public class TestDemo {
    public static void main(String[] args) {
      A<Integer> integerA = new A<>(1);
      A<String> stringA = new A<>("hello");
      A<Double> doubleA = new A<>(52.0);
        System.out.println(integerA.get());
        System.out.println(stringA.get());
        System.out.println(doubleA.get());
    }
}
